<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文字下划线悬浮跟随</title>
    <style>
      .text {
        line-height: 2;
        width: 50%;
        margin: 100px auto;
      }
      span {
        background: linear-gradient(to right, #f00, #f00);
        background-size: 0px 2px;
        background-repeat: no-repeat;
        background-position: right bottom;
        transition: background-size 2s ease;
      }
      .text:hover span {
        background-position: left bottom;
        background-size: 100% 2px;
      }
    </style>
  </head>
  <body>
    <div class="text">
      <span>
        With the development of high education, the phenomenon of many college
        graduates pouring to the west as volunteer teachers has become
        increasingly popular nowadays. In one job market before a post board for
        recruiting volunteer teachers stands an ocean of college graduates,
        writing their names, educational backgrounds and their like on the
        register papers, with many more waiting in a line to join them , which
        is a common scenery in many cities in China especially these years. The
        issue, being so common, has triggered a heated discussion on the Weibo--
        the most influential social media in China.
      </span>
    </div>
  </body>
</html>
